package com.woniuxy.ticket.ticketmovie.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.ticket.ticketmovie.entity.Movie;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MovieMapper extends BaseMapper<Movie> {
    //根据类型id分页查询电影
    List<Movie> findMovieByTypeId(Page<Movie> page, @Param("id") int id);
}
